package study.我的多线程四种方式.ExecutorService;

import java.util.concurrent.Callable;

public class CallableTest2 implements Callable<Integer> {
	private  int defaultNumber=0;
	
	public   CallableTest2(Integer a) {
		defaultNumber=a;
	}
	
	@Override
	//在传进来值基础上加100作为返回值
	public Integer call() throws Exception {
		System.out.println("主线程传值为："+defaultNumber);
		return defaultNumber+100;
	}

}
